package cn.est.service;

import cn.est.dto.AppointmentReq;
import cn.est.dto.Page;
import cn.est.pojo.MaintainOrder;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface MaintainOrderService {

    public MaintainOrder getMaintainOrderById(Long id);

    public List<MaintainOrder> getMaintainOrderListByMap(Map<String, Object> param);

    public Integer getMaintainOrderCountByMap(Map<String, Object> param);

    public Integer qdtxAddMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxModifyMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxDeleteMaintainOrderById(Long id);

    public Integer qdtxBatchDeleteMaintainOrder(String ids);

    public Page<MaintainOrder> queryMaintainOrderPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public String submit(AppointmentReq appointmentReq, Integer eId, Long mid) throws ParseException;

    public int finishPay(String aliTradeNo,String payNo,String totalAmount);
}
